<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('全国薪资列表')"/>
    <script th:src="@{/js/jquery.js}"></script>
    <script th:src="@{/js/bootstrap.min.js}"></script>
    <script th:src="@{/js/echarts2.min.js}"></script>
</head>
<body>
<div class="container-div">
    <div class="row">
        <div class="col-sm-12 search-collapse">
            <form id="dept-form" style="height: 50px">
                <div class="select-list">
                    <ul>
                        <li>
                            学历：<select name="record">
                            <option value="0">全部</option>
                            <option value="1">研究生</option>
                            <option value="2">本科</option>
                            <option value="3">大专</option>
                            <option value="4">高中</option>
                            <option value="5">不限</option>
                        </select>
                        </li>
                        <li>
                            <a class="btn btn-primary btn-rounded btn-sm" onclick="$.treeTable.search()"><i
                                    class="fa fa-search"></i>&nbsp;搜索</a>
                            <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i
                                    class="fa fa-refresh"></i>&nbsp;重置</a>
                        </li>
                    </ul>
                </div>
            </form>

            <div id="main-salary" style="height:700px;width: 100%">
            </div>
        </div>


    </div>

    <script>
        var app = {};

        var chartDom = document.getElementById("main-salary");
        var myChart = echarts.init(chartDom);
        var option;
        option = {
            tooltip: {
                trigger: 'axis',
                axisPointer: {
                    type: 'shadow'
                }
            },
            legend: {
                data: ['研究生', '本科', '大专', '高中','不限'],
                textStyle: {
                    fontSize: '20px',
                    fontWeight: 700,
                    itemGap: 40
                }
            },
            toolbox: {
                show: true,
                orient: 'vertical',
                left: 'right',
                top: 'center',
                feature: {
                    mark: { show: true },
                    dataView: { show: true, readOnly: false },
                    magicType: { show: true, type: ['line', 'bar', 'stack'] },
                    restore: { show: true },
                    saveAsImage: { show: true }
                }
            },
            xAxis: [
                {
                    type: 'category',
                    axisTick: { show: false },
                    data: ['java开发', '前端开发', '软件测试', 'UI', '大数据'],
                    axisLabel:{
                        textStyle:{
                            fontSize:"30"
                        }
                    }
                }
            ],
            yAxis: [
                {
                    type: 'value',
                    axisLabel:{
                        textStyle:{
                            fontSize:"30"
                        }
                    }
                }
            ],
            series: [
                {
                    name: '研究生',
                    type: 'bar',
                    barGap: 0,
                    label: {
                        show: true,
                        align: 'left',
                        verticalAlign: 'middle',
                        position: 'insideBottom',
                        distance: 15,
                        rotate:90,
                        formatter: '{c}  {name|{a}}',
                        fontSize: 20,
                        rich: {
                            name: {}
                        }
                    },
                    emphasis: {
                        focus: 'series'
                    },
                    data: [320, 332, 301, 334, 390]
                },
                {
                    name: '本科',
                    type: 'bar',
                    label: {
                        show: true,
                        align: 'left',
                        verticalAlign: 'middle',
                        position: 'insideBottom',
                        distance: 15,
                        rotate:90,
                        formatter: '{c}  {name|{a}}',
                        fontSize: 20,
                        rich: {
                            name: {}
                        }
                    },
                    emphasis: {
                        focus: 'series'
                    },
                    data: [220, 182, 191, 234, 290]
                },
                {
                    name: '大专',
                    type: 'bar',
                    label: {
                        show: true,
                        align: 'left',
                        verticalAlign: 'middle',
                        position: 'insideBottom',
                        distance: 15,
                        rotate:90,
                        formatter: '{c}  {name|{a}}',
                        fontSize: 20,
                        rich: {
                            name: {}
                        }
                    },
                    emphasis: {
                        focus: 'series'
                    },
                    data: [150, 232, 201, 154, 190]
                },
                {
                    name: '高中',
                    type: 'bar',
                    label: {
                        show: true,
                        align: 'left',
                        verticalAlign: 'middle',
                        position: 'insideBottom',
                        distance: 15,
                        rotate:90,
                        formatter: '{c}  {name|{a}}',
                        fontSize: 20,
                        rich: {
                            name: {}
                        }
                    },
                    emphasis: {
                        focus: 'series'
                    },
                    data: [98, 77, 101, 99, 40]
                },
                {
                    name: '不限',
                    type: 'bar',
                    label: {
                        show: true,
                        align: 'left',
                        verticalAlign: 'middle',
                        position: 'insideBottom',
                        distance: 15,
                        rotate:90,
                        formatter: '{c}  {name|{a}}',
                        fontSize: 20,
                        rich: {
                            name: {}
                        }
                    },
                    emphasis: {
                        focus: 'series'
                    },
                    data: [100, 120, 109, 150, 20]
                }
            ]
        };
        option && myChart.setOption(option);

    </script>
</div>

</body>
</html>